package com.naire.modul.code_inc.service;

import net.common.service.GeneralService;
import com.naire.modul.code_inc.dao.Code_incDao;
import com.naire.modul.code_inc.dao.impl.Code_incDaoImpl;
import com.naire.modul.code_inc.vo.Code_incVo;

/**
 * 
 * 
 * @author Administrator
 * 
 */
public class Code_incEditorService extends GeneralService {

	private Code_incVo bean;

	@Override
	public void execute() throws Exception {
		Code_incDao dao = new Code_incDaoImpl();
		if (bean.getInc_id() != null) {
			dao.update(bean);
		} else {
			dao.insert(bean);
		}
	}

	public void setBean(Code_incVo bean) {
		this.bean = bean;
	}

}
